package com.qfedu.meidijiaju.service.impl;

import com.qfedu.meidijiaju.service.CardService;
import com.qfedu.meidijiaju.entity.Card;
import com.qfedu.meidijiaju.mapper.CardMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CardServiceImpl implements CardService {

    @Autowired
    private CardMapper cardMapper;

    @Override
    public List<Card> queryCard(Card card) {
        return cardMapper.queryCard(card);
    }

    @Override
    public boolean addCard(Card card) {
        return cardMapper.addCard(card);
    }

    @Override
    public boolean deleteCard(Card card) {
        return cardMapper.deleteCard(card);
    }
}
